from pymongo import MongoClient

client = MongoClient()

db = client.database_test

col1 = db.student

col1.update_one({'name':'zhaolliu'},{'$set':{'age':25}})
result_update = col1.find({'name':'zhaolliu'})

for doc in result_update:
    print(doc)